package com.springcloudemo.ms.provider;

import com.springcloudemo.ms.facede.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;

@DubboService
public class DemoServiceImpl implements DemoService {

    @Override
    public String sayHello(String name) {
        System.out.println("hello "+name+" "+ RpcContext.getClientAttachment().getLocalPort());
        return "hello "+name+" "+ RpcContext.getClientAttachment().getLocalPort();
    }
}
